/**
 * Copyright(c) by JNet Smartware Group.
 * All rights reserved. Not distribution or redistribution without
 * any permission of JNet Smartware Group.
 * 
 * @author thuc
 * 2010/03/15
 */
package vn.smartware.co.java.net.commons;

/**
 * Property
 * 
 */
public abstract class Property {
	/**
	 * field dest prop<br>
	 */
	protected String destProp;
	/**
	 * field copy null value<br>
	 */
	protected boolean notCopyIfNull;
	/**
	 * @param destPropName
	 * @param notCopyIfNull
	 */
	public Property(String destPropName, boolean notCopyIfNull) {
		this.destProp = destPropName;
		this.notCopyIfNull = notCopyIfNull;
	}
	/**
	 * is copy null value<br>
	 * 
	 * @return boolean
	 */
	public boolean isNotCopyIfNull() {
		return this.notCopyIfNull;
	}
	/**
	 * set copy null value<br>
	 * 
	 * @param copyNullValue
	 */
	public void setNotCopyIfNull(boolean copyNullValue) {
		this.notCopyIfNull = copyNullValue;
	}
	/**
	 * get dest prop<br>
	 * 
	 * @return String
	 */
	public String getDestProp() {
		return this.destProp;
	}
	/**
	 * set dest prop<br>
	 * 
	 * @param destProp
	 */
	public void setDestProp(String destProp) {
		this.destProp = destProp;
	}
	/**
	 * is value property<br>
	 * 
	 * @return boolean
	 */
	public abstract boolean isValueProperty();
	/**
	 * is name property<br>
	 * 
	 * @return boolean
	 */
	public abstract boolean isNameProperty();
}
